import types from '../types.js'

const state = {
  AssetsFinanceList: [],
  AssetsMaterialList: [],
  AssetsUnhealthyList: [],
  AssetsAttractList: [],
  AssetsFinanceTotalNum: 0,
  AssetsMateriaTotalNum: 0,
  AssetsUnhealthyTotalNum: 0,
  AssetsAttractTotalNum: 0
}

var getters = {
  AssetsFinanceList: state => state.AssetsFinanceList,
  AssetsMaterialList: state => state.AssetsMaterialList,
  AssetsUnhealthyList: state => state.AssetsUnhealthyList,
  AssetsAttractList: state => state.AssetsAttractList,
  AssetsFinanceTotalNum: state => state.AssetsFinanceTotalNum,
  AssetsMateriaTotalNum: state => state.AssetsMateriaTotalNum,
  AssetsUnhealthyTotalNum: state => state.AssetsUnhealthyTotalNum,
  AssetsAttractTotalNum: state => state.AssetsAttractTotalNum,
}

const mutations = {
  // [types.INPRODUCTLISTONE] (state, productlistone) {
  //   state.productListone = productlistone
  //   // console.log(state.productListone)
  // },
  // [types.INPRODUCTLISTTWO] (state, productlisttwo) {
  //   state.productListtwo = productlisttwo
  //   // console.log(state.productListtwo)
  // }
  /*
  * const INASSETSFINANCE = 'inAssetsFinance'
const INASSETSMATERIAL = 'inAssetsMaterial'
const INASSETSUNHEALTHY = 'inAssetsUnhealthy'
const INASSETSATTRACT = 'inAssetsAttract'
const INASSETSFINANCETOTAL = 'inAssetsFinanceTotal'
const INASSETSMATERIATOTAL = 'inAssetsMateriaTotal'
const INASSETSUNHEALTHYTOTAL = 'inAssetsUnhealthyTotal'
const INASSETSATTRACTTOTAL = 'inAssetsAttractTotal'
  * */
  [types.INASSETSFINANCE] (state, AssetsFinance) {
    state.AssetsFinanceList = AssetsFinance
  },
  [types.INASSETSMATERIAL] (state, AssetsMaterial) {
    state.AssetsMaterialList = AssetsMaterial
  },
  [types.INASSETSUNHEALTHY] (state, AssetsUnhealthy) {
    state.AssetsUnhealthyList = AssetsUnhealthy
  },
  [types.INASSETSATTRACT] (state, AssetsAttract) {
    state.AssetsAttractList = AssetsAttract
  },
  [types.INASSETSFINANCETOTAL] (state, AssetsFinanceTotal) {
    state.AssetsFinanceTotalNum = AssetsFinanceTotal
  },
  [types.INASSETSMATERIATOTAL] (state, AssetsMateriaTotal) {
    state.AssetsMateriaTotalNum = AssetsMateriaTotal
  },
  [types.INASSETSUNHEALTHYTOTAL] (state, AssetsUnhealthyTotal) {
    state.AssetsUnhealthyTotalNum = AssetsUnhealthyTotal
  },
  [types.INASSETSATTRACTTOTAL] (state, AssetsAttractTotal) {
    state.AssetsAttractTotalNum = AssetsAttractTotal
  },
}

export default {
  state,
  mutations,
  getters
}
